<php>
    
    /*顶级分类ID*/

    $top_category_id = get_cat_parent_path($cat_id);

    

    /*顶级分类的子分类*/
    $categorys = sp_get_child_terms($top_category_id[0]);

    /*父级分类信息*/
    $new_category = model('portal_category')
                 -> where('id', $top_category_id[0])
                 -> order('list_order asc,id desc')
                 -> find();
    
    $category2['name']    = $new_category['name'];
    $category2['subname'] = $new_category['subname'];
 

    

</php>


<div class="oleft fl">
    <div class="title">
        <h4>{$category2.name|default=''}</h4>
        <span>{$category2.subname|default=''}</span>
    </div>
    <div class="lmenu">
        <ul>
            <volist name='categorys' id='vo'>
            <li <eq name="cat_id" value="$vo.id">class="on"</eq>>
                <a href="{:cmf_url('portal/List/index',array('id'=>$vo['id']))}">{$vo.name}</a>
            </li>
            </volist>
            
        </ul>
    </div>

    <include file='public@left'/>
</div>